#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include<QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
   MyCoin(QString butImg);

   //金币的坐标
   int posX;
   int posY;
   bool flag;
   void changeFlag();
   QTimer *timer1;
   QTimer *timer2;
   int min = 1;
   int max = 8;

   //执行动画的标志
   bool isAnimation= false;

   //重写 按下
   void mousePressEvent(QMouseEvent* e);

   bool isWin = false;


signals:

};

#endif // MYCOIN_H
